#ifndef SSL_H
#define SSL_H

#include "net.h"

#ifdef __cplusplus  
extern "C" {  
#endif  

SSL_CTX *ssl_init();

socket_status_t ssl_connect(wrk_core_connection_t *, char *);
socket_status_t ssl_close(wrk_core_connection_t *);
socket_status_t ssl_read(wrk_core_connection_t *, size_t *);
socket_status_t ssl_write(wrk_core_connection_t *, char *, size_t, size_t *);
size_t ssl_readable(wrk_core_connection_t *);

#ifdef __cplusplus  
}
#endif  

#endif /* SSL_H */
